package org.umss.fixture.services;

import java.io.IOException;

public class ConnectionException extends IOException {

	private static final long serialVersionUID = 1L;

	private String message;

	public ConnectionException(Exception exception) {
		super(exception);
		ConnectionExceptionMessageCreator creator = new ConnectionExceptionMessageCreator();
		message = creator.getMessage(exception);
	}

	public ConnectionException(int exceptionCode) {
		super();
		ConnectionExceptionMessageCreator creator = new ConnectionExceptionMessageCreator();
		message = creator.getMessage(exceptionCode);
	}

	@Override
	public String getMessage() {
		return message;
	}
}
